<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport"
		  content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<!-- 本框架基本脚本和样式 -->
	<script type="text/javascript"
			src="${path }/resource/js/plugin/jquery-2.1.4.min.js"></script>
	<script type="text/javascript"
			src="${path }/resource/js/systools/MBase.js"></script>
</head>
<body>
<div class="ibox-content">
	<form class="form-horizontal" id="dataform" onsubmit="javascripr:return false;">
		<input type="hidden" name="tokenUrl" value="${tokenUrl}">
		<input type="hidden" name="token" value="${token}">
		<c:if test="${obj ne null }">
			<input type="hidden" name="xcId" id="xcId" value="${obj.xcId }">
		</c:if>
		<div class="form-group">
			<label class="col-sm-2 control-label">证书编号
				<span class="text-danger">*</span>
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcCode"
					   maxLength="100" dataType="*1-100"
					   value="<c:out value="${obj.xcCode }"></c:out>" nullmsg="证书编号不能为空">
			</div>
			<label class="col-sm-2 control-label">证书状态
				<span class="text-danger">*</span>
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcStatus"
					   maxLength="100" dataType="s1-100"
					   value="<c:out value="${obj.xcStatus }"></c:out>" nullmsg="证书状态不能为空">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label datetimepicker">颁证日期
				<span class="text-danger">*</span>
			</label>
			<div class="col-sm-4">

				<input type="text" class="form-control datetimepicker" name="xcAwardDate"
					   value='<fmt:formatDate pattern="yyyy-MM-dd" value="${obj.xcAwardDate}" ></fmt:formatDate>' nullmsg="颁证日期不能为空">
			</div>
			<label class="col-sm-2 control-label">证书到期日期
				<span class="text-danger">*</span>
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control datetimepicker" name="xcExpireDate"
					   value='<fmt:formatDate pattern="yyyy-MM-dd" value="${obj.xcExpireDate}" ></fmt:formatDate>' nullmsg="证书到期日期不能为空">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">初次获证日期
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control datetimepicker" name="xcFirstDate"
					   ignore="ignore"
					   value='<fmt:formatDate pattern="yyyy-MM-dd" value="${obj.xcFirstDate}" ></fmt:formatDate>' nullmsg="初次获证日期不能为空">
			</div>
			<label class="col-sm-2 control-label">信息上报日期
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control datetimepicker" name="xcReportDate"
					   ignore="ignore"
					   value='<fmt:formatDate pattern="yyyy-MM-dd" value="${obj.xcReportDate}" ></fmt:formatDate>' nullmsg="信息上报日期不能为空">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">认证项目
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcProject"
					   maxLength="1000"
					   ignore="ignore"
					   value="<c:out value="${obj.xcProject }"></c:out>" nullmsg="认证项目不能为空">
			</div>
			<label class="col-sm-2 control-label">认证依据
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcBasis"
					   maxLength="5000"
					   ignore="ignore"
					   value="<c:out value="${obj.xcBasis }"></c:out>" nullmsg="认证依据不能为空">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">监督次数
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcSuperviseNumber"
					   ignore="ignore"
					   value="<c:out value="${obj.xcSuperviseNumber }"></c:out>" nullmsg="监督次数不能为空">
			</div>
			<label class="col-sm-2 control-label">再认证次数
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcReauthNumber"
					   ignore="ignore"
					   value="<c:out value="${obj.xcReauthNumber }"></c:out>" nullmsg="再认证次数不能为空">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">认证覆盖的业务范围
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcRange"
					   ignore="ignore"
					   value="<c:out value="${obj.xcRange }"></c:out>" nullmsg="再认证次数不能为空">
			</div>
			<label class="col-sm-2 control-label">是否覆盖多场所
			</label>
			<div class="col-sm-4">
				<select class="form-control"  name="xcCoverMany">
					<option value="1"
							<c:if test="${obj.xcCoverMany eq '1' }">selected="selected"</c:if>>是</option>
					<option value="2"
							<c:if test="${obj.xcCoverMany eq '2' }">selected="selected"</c:if>>否</option>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">认证覆盖的场所名称及地址
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcCoverAddress"
					   maxLength="500"
					   ignore="ignore"
					   value="<c:out value="${obj.xcCoverAddress }"></c:out>" nullmsg="认证覆盖的场所名称及地址不能为空">
			</div>
			<label class="col-sm-2 control-label">证书使用的认可标识
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcUseSign"
					   maxLength="100"
					   ignore="ignore"
					   value="<c:out value="${obj.xcUseSign }"></c:out>" nullmsg="证书使用的认可标识不能为空">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">组织名称
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcOrgName"
					   maxLength="500"
					   ignore="ignore"
					   value="<c:out value="${obj.xcOrgName }"></c:out>" nullmsg="组织名称不能为空">
			</div>
			<label class="col-sm-2 control-label">统一社会信用代码/组织机构代码
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcOrgCode"
					   maxLength="200"
					   ignore="ignore"
					   value="<c:out value="${obj.xcOrgCode }"></c:out>" nullmsg="统一社会信用代码/组织机构代码不能为空">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">所在国别地区
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcArea"
					   maxLength="200"
					   ignore="ignore"
					   value="<c:out value="${obj.xcArea }"></c:out>" nullmsg="所在国别地区不能为空">
			</div>
			<label class="col-sm-2 control-label">本证书体系覆盖人数
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcPeopleNumber"
					   ignore="ignore"
					   value="<c:out value="${obj.xcPeopleNumber }"></c:out>" nullmsg="本证书体系覆盖人数不能为空">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">组织地址
			</label>
			<div class="col-sm-4">
				<input type="text" class="form-control" name="xcOrgAddress"
					   maxLength="500"
					   ignore="ignore"
					   value="<c:out value="${obj.xcOrgAddress }"></c:out>" nullmsg="组织地址不能为空">
			</div>
			<div class="form-group ">
				<div class="col-sm-12 text-center">
					<a href="javascript:;" onclick="myForm.submit()"
					   class="btn btn-success radius"><i class="fa fa-check"></i>  保存</a>&nbsp;&nbsp;&nbsp;&nbsp; <a
						class="btn btn-danger radius" href="javascript:;" onclick="MTools.closeForm()" ><i class="fa fa-close"></i> 关闭</a>
				</div>
			</div>
	</form>
</div>
</body>
<script type="text/javascript" src="${path }/resource/js/systools/MJsBase.js"></script>
<script type="text/javascript">
	$(function() {
		// var _initParam = {
		// 	format : 'yyyy-mm-dd',
		// 	todayBtn : true,
		// 	autoclose : true,
		// 	startView : 3,
		// 	maxView : 4,
		// 	minView : 'month'
		// };
		 var _initParam = {
		format : 'yyyy-mm-dd',
		 	todayBtn : true,
			autoclose : true,
			startView : 3,
		 	maxView : 2,
		 	minView : 'month'
		 };
		MTools.ininDatetimepicker(_initParam);
	})
	MTools.autoFullSelect();
	$(".select2").select2();
	var invokeUrl="${path}/do/admin/xefCertificate/addBizXefCertificate";
	if($("#xcId").val()){
		invokeUrl = "${path}/do/admin/xefCertificate/modifyBizXefCertificate";
	}
	var myForm=MForm.initForm({
		invokeUrl:invokeUrl,
		afterSubmit:function(){
			parent.myGrid.serchData();
		},
	});


</script>
</body>
</html>